﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true"
    CodeFile="TrangDanhSachHS.aspx.cs" Inherits="QuanTri_TrangDanhSachHS" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Danh sách học sinh theo lớp
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Năm học: </span>
                    <asp:DropDownList ID="drNamHoc" runat="server" Width="120px" CssClass="heighcontrol">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Lớp học: </span>
                    <asp:DropDownList ID="drLopHoc" runat="server" Width="120px" CssClass="heighcontrol"
                        AutoPostBack="True" OnSelectedIndexChanged="drLopHoc_SelectedIndexChanged">
                    </asp:DropDownList>
                </div>
                <asp:TabContainer runat="server" ID="tabDS" Width="100%" ActiveTabIndex="0">
                    <asp:TabPanel runat="server" ID="tabDSHS" HeaderText="Danh sách học sinh">
                        <ContentTemplate>
                            <div style="text-align: right; margin-bottom: 10px;">
                                <span>
                                    <asp:LinkButton runat="server" ID="lbkKetQuaTheoKy" CssClass="table" Text="Bảng điểm theo kỳ"
                                        OnClick="lbkKetQuaTheoKy_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="imbKQTheoKy" CssClass="size" ImageUrl="~/Icon/table(1).ico"
                                        OnClick="imbKQTheoKy_Click" />
                                </span><span>
                                    <asp:LinkButton runat="server" ID="lbkDanhGiaHK" CssClass="table" Text="Đánh giá hạnh kiểm"
                                        OnClick="lbkDanhGiaHK_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="imbDGHK" CssClass="size" ImageUrl="~/Icon/table_accept.ico"
                                        OnClick="imbDGHK_Click" />
                                </span><span>
                                    <asp:LinkButton runat="server" ID="lbkTongHop" CssClass="table" Text="Bảng tổng hợp kết quả"
                                        OnClick="lbkTongHop_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="ImageButton2" CssClass="size" ImageUrl="~/Icon/table_star.ico"
                                        OnClick="ImageButton2_Click" />
                                </span>
                            </div>
                            <div>
                                <asp:GridView ID="grvDSHS" runat="server" AutoGenerateColumns="False" Width="100%"
                                    AllowPaging="True" Height="28px" ShowFooter="True" EnableModelValidation="True" PageSize="50">
                                    <HeaderStyle BackColor="#9999FF" Height="30px" />
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Xem phiếu điểm">
                                            <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgXemDiem" Height="30px" ImageUrl="~/Icon/personal.ico"
                                                    PostBackUrl='<%#"~/QuanTri/TrangPhieuDiemChiTietHS.aspx?MaHS="+Eval("MaHS")+"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Lỗi vi phạm">
                                            <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgLoiVP" Height="30px" ImageUrl="~/Icon/violation.ico"
                                                    PostBackUrl='<%#"~/QuanTri/TrangDanhSachLoiHS.aspx?MaHS="+Eval("MaHS")
                                    +"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text
                                    +"&TenNam="+ this.drNamHoc.SelectedItem.Text%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                            <div style="text-align: right; margin-top: 10px;">
                                <span>
                                    <asp:LinkButton runat="server" ID="lbkTheoKy2" CssClass="table" Text="Bảng điểm theo kỳ"
                                        OnClick="lbkTheoKy2_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="imbTheoKy2" CssClass="size" ImageUrl="~/Icon/table(1).ico"
                                        OnClick="imbTheoKy2_Click" />
                                </span><span>
                                    <asp:LinkButton runat="server" ID="lbkHanhKiem2" CssClass="table" Text="Đánh giá hạnh kiểm"
                                        OnClick="lbkHanhKiem2_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="imbHanhKiem2" CssClass="size" ImageUrl="~/Icon/table_accept.ico"
                                        OnClick="imbHanhKiem2_Click" />
                                </span><span>
                                    <asp:LinkButton runat="server" ID="lbkTongHop2" CssClass="table" Text="Bảng tổng hợp kết quả"
                                        OnClick="lbkTongHop2_Click"></asp:LinkButton>
                                    <asp:ImageButton runat="server" ID="imbTongHop2" CssClass="size" ImageUrl="~/Icon/table_star.ico"
                                        OnClick="imbTongHop2_Click" />
                                </span>
                            </div>
                        </ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel runat="server" ID="tabDSPH" HeaderText="Danh sách phụ huynh">
                        <ContentTemplate>
                            <asp:GridView ID="grvDSPhuHuynh" runat="server" AutoGenerateColumns="False" Width="100%"
                                AllowPaging="True" Height="28px" ShowFooter="True" PageSize="50">
                                <HeaderStyle BackColor="#9999FF" Height="30px" />
                                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <Columns>
                                    <%--<asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckCheck" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                                    <asp:TemplateField HeaderText="STT">
                                        <ItemTemplate>
                                            <%# Container.DataItemIndex + 1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    
                                    <asp:TemplateField HeaderText="Họ tên cha" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTenCha" Text='<%# Bind("HoTenCha") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ĐC cha" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblDCCha" Text='<%# Bind("DiaChiCha") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Họ tên mẹ" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTenMe" Text='<%# Bind("HoTenMe") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Địa chỉ mẹ" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblDCCha" Text='<%# Bind("DiaChiMe") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="SĐT" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblSDT" Text='<%# Bind("SDT") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Email" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblEmail" Text='<%# Bind("Email") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>
